package org.example.examfx02.entity;

public class Teacher extends User{
    private String workId;
    private String level;
    public Teacher(){

    }
    public Teacher(String workId,String username,String level){
        this.workId = workId;
        this.username = username;
        this.level = level;
    }
    public Teacher(String workId,String username,String level,String password,boolean isChanged){
        this(workId,username,level);
        this.password = password;
        this.isChanged = isChanged;
    }
    public void show(){
        System.out.println(workId + " " + username);
    }
    @Override
    public String toString(){
        return workId + " " + username;
    }
    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

}
